package com.bestcem.xm.txtanls.entity.mongo;

import lombok.*;

import java.util.List;

/**
 * TXTANLS_JOIN_INFO 实体
 *
 * @author liheng
 * @version v1.0
 * @date 2021/5/10-17:47
 */
@ToString
@Getter
@Setter
//@Document(collection = TXTANLS_JOIN_INFO)
public class JoinInfo extends BaseEntity {
    private static final long serialVersionUID = -8171763260748152782L;
    /**
     * 文本分析项目id
     */
    //    @Fiel(value = "project_id", targetType = FieldType.OBJECT_ID)
    private String projectId;

    /**
     * 数据源记录唯一id
     */
    //    @Fiel(value = "collection_id", targetType = FieldType.STRING)
    private String collectionId;

    /**
     * 数据源记录绑定时间字段
     */
    //    @Fiel(value = "time", targetType = FieldType.STRING)
    private String time;

    /**
     * 原话记录情感得分
     */
    //    @Fiel(value = "record_score", targetType = FieldType.INT32)
    private Integer recordScore;

    /**
     * 原话记录情感倾向
     */
    //    @Fiel(value = "record_senti", targetType = FieldType.INT32)
    private Integer recordSenti;

    /**
     * 原话记录id
     */
    //    @Fiel(value = "recordID", targetType = FieldType.OBJECT_ID)
    private String recordId;

    /**
     * 子观点集合列表
     */
    //    @Fiel(value = "ViewPointList", targetType = FieldType.ARRAY)
    private List<Viewpoint> viewpointList;

    /**
     * 观点信息实体
     */
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Viewpoint {

        /**
         *
         */
        //    @Fiel(value = "key", targetType = FieldType.STRING)
        private String key;

        /**
         * 观点id
         */
        //    @Fiel(value = "view_id", targetType = FieldType.STRING)
        private String viewId;

        /**
         *
         */
        //    @Fiel(value = "values", targetType = FieldType.INT32)
        private Integer values;

        /**
         * 观点内容
         */
        //    @Fiel(value = "content", targetType = FieldType.STRING)
        private String content;
    }


}
